package event

type ErrorTextEvent struct {
	*WeChatRequestMessage
	Error string
}

func (e *ErrorTextEvent) Handle() interface{} {
	return CreateTextResponseMessage(e.WeChatRequestMessage, e.Error)
}

func (e *ErrorTextEvent) OnParse(params map[string]string) Event {
	return e
}
